/**  
 * All rights Reserved, Designed By <a href="www.itttq.com" target="_blank">www.itttq.com</a>
 * @date:   2017-07-21 11:42:21
 * @Copyright: 2017 <a href="www.itttq.com" target="_blank">www.itttq.com</a> Inc. All rights reserved. 
 */
package com.itttq.gshop.generic.connector;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.itttq.gshop.domain.po.SysFloorImgPo;
import com.itttq.gshop.domain.to.ResultPageTo;

@FeignClient(name= "${gshop.feign.server.pbpm}/sysFloorImg")
public interface ISysFloorImgConnector {
	/**
	 * 根据条件获取SysFloorImgPo对象，并返回查询的数据总数
	 * 
	 * @param sysFloorImg
	 * @Author 迷蝶
	 * @return ResultPageTo<SysFloorImgPo>
	 */
	@RequestMapping("list")
    public ResultPageTo<SysFloorImgPo> getSysFloorImgs(@RequestBody SysFloorImgPo sysFloorImg);
	
	/**
	 * 根据ID获取SysFloorImgPo对象，并放入redis缓存
	 * 
	 * @param id	只能是数字
	 * @Author 迷蝶
	 * @return SysFloorImgPo
	 */
	@RequestMapping("/{id}")
	public SysFloorImgPo getSysFloorImg(@PathVariable("id")int id);
	
	/**
	 * 保存SysFloorImgPo对象，并清除此ID的缓存。<br>
	 * 如果ID存在，则更新对象；ID不存在则插入对象。
	 * 
	 * @param sysFloorImg
	 * @Author 迷蝶
	 * @return SysFloorImgPo
	 */
	@RequestMapping("/save")
	public Integer saveSysFloorImg(@RequestBody SysFloorImgPo sysFloorImg);
	
	/**
	 * 根据ID删除SysFloorImgPo对象，并清除此ID的缓存。<br>
	 * 
	 * @param id	只能是数字
	 * @Author 迷蝶
	 * @return SysFloorImgPo
	 */
	@RequestMapping("/del/{id}")
	public Integer delSysFloorImg(@PathVariable("id")int id);
}